* {
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
}

img {
    -ms-interpolation-mode: bicubic;
    vertical-align: middle;
}

.box {
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.box > * {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
}

.dialogWindow {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    /*bottom:0;*/
    margin: auto;
    z-index: 9000;
    width: 300px;
    /*height:200px;*/
    min-height: 100px;
    background: #fff;
    border-radius: 5px;
    -webkit-box-sizing: border-box;
}

.dialogWindow header, .dialogWindow footer {
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
}

.dialogWindow header:empty, .dialogWindow footer:empty {
    display: none;
}

.dialogWindow.on {
    display: block;
}

.dialogCover {
    display: none;
}

.dialogWindow.on+.dialogCover {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
}

.dialogWindow header>dl {
    display: table;
}

.dialogWindow header>dl>dd {
    display: table-cell;
    width: 100%;
}

/**********/
.dialogWindow .dialogContent {
    /*height:120px;*/
    padding: 0;
    -webkit-box-sizing: border-box;
}

/**********/
.dialogWindow .dialogBtn {
    display: block;
    width: 100px;
    line-height: 30px;
    border: 1px solid #ccc;
    text-align: center;
    margin: auto;
}

/***************************/
.dialogWindow[data-type="dialog"] {
    width: 100px;
    height: 100px;
    background: url(../images/loading.gif) no-repeat center center;
    -webkit-background-size: 35px auto;
    background-size: 35px auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #888;
    border-radius: 5px;
}

/****************************************************/
.dialogWindow.alert {
    background: rgba(0, 0, 0, 0.5);
    padding-bottom: 10px;
    width: 200px;
}

.dialogWindow.alert header {
    height: 10px;
}

.dialogWindow.alert .icon.success {
    height: 50px;
    width: 50px;
    margin: auto;
    background: url(../images/icons2.png) no-repeat center -50px;
    -webkit-background-size: 50px auto;
}

.dialogWindow.alert .dialogBtn {
    display: block;
    text-align: center;
    white-space: pre-line;
    height: 33px;
    line-height: 33px;
    border-radius: 3px;
    background: #5ac5d4;
    color: #ffffff;
    border: 0;
    margin: 5px auto;
}

/*************loading*************/
.dialogWindow.loading {
    background: url(../images/loading.gif) no-repeat center center;
    -webkit-background-size: 50px auto;
    color: transparent;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100px;
    height: 100px;
    margin: auto;
    bottom: 0;
}

/************confirm****************/
.dialogWindow.confirm {
    padding-bottom: 10px;
    width: 260px;
    border-bottom: 3px solid #5ac5d4;
    border-radius: 1px;
    background-color: #ffffff;
    padding-bottom: 15px;
}

.dialogWindow.confirm header {
    height: 10px;
}

.dialogWindow.confirm .dialogContent {
    border-bottom: 1px dashed #e2e2e2;
    margin-bottom: 10px;
}

.dialogWindow.confirm footer .dialogBtn {
    display: block;
    height: 35px;
    line-height: 35px;
    padding: 0 5px;
    background: #56c6d6;
    color: #ffffff;
    text-align: center;
    border-radius: 1px;
    width: 80px;
    margin: auto;
    border: 0;
    font-size: 18px;
}

.dialogWindow.confirm footer .box>div:nth-of-type(2) .dialogBtn {
    background: #a9a9a9;
}

